package com.asktgapp.model;

import com.asktgapp.base.BaseItem;
import com.asktgapp.utils.PinYinUtils;

/**
 * time:2018/2/9
 * Create By ZhaoKai
 * Email: dczk@foxmail.com
 * Description:
 */

public class BrandVO extends BaseItem {

    /**
     * id : 1
     * typeId : 1
     * name : 类型1品牌1
     * isHot : 1
     * status : 0
     */

    private int typeId;
    private String name;
    private int isHot;
    private int status;
    private String pinyin;
    //拼音首字母
    private String headerWord;

    public String getPinyin() {
        return this.pinyin = PinYinUtils.getPinyin(name);
    }

    public void setPinyin(String pinyin) {
        this.pinyin = pinyin;
    }

    public String getHeaderWord() {
        this.pinyin = PinYinUtils.getPinyin(name);
        headerWord = pinyin.substring(0, 1);
        return headerWord;
    }

    public void setHeaderWord(String headerWord) {
        this.headerWord = headerWord;
    }

    public int getTypeId() {
        return typeId;
    }

    public void setTypeId(int typeId) {
        this.typeId = typeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getIsHot() {
        return isHot;
    }

    public void setIsHot(int isHot) {
        this.isHot = isHot;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
